import request from "@/utils/request";

// 查询用户列表
export function queryUserList(data) {
  return request({
    url: "/keyue/admin/users/list_by_page",
    method: "post",
    data,
  });
}

// 新增用户
export function addUserItem(data) {
  return request({
    url: "/keyue/admin/users/add",
    method: "post",
    data,
  });
}

// 编辑用户
export function editUserItem(data) {
  return request({
    url: "/keyue/admin/users/edit",
    method: "post",
    data,
  });
}

// 禁用用户
export function optUserItem(data) {
  return request({
    url: "/keyue/admin/users/opt",
    method: "post",
    data,
  });
}

// 重置密码
export function resetPassword(data) {
  return request({
    url: "/keyue/admin/users/reset",
    method: "post",
    data,
  });
}

// 修改密码
export function changePassword(data) {
  return request({
    url: "/keyue/admin/users/update_pass",
    method: "post",
    data,
  });
}
